﻿using System;
using SacNetUG.Models;

namespace SacNetUG.Tests.Fakes
{
    class MyFakeDatabase : FakeDatabase
    {
        public override void PopulateTables()
        {
            var fakeEvent = new Event {StartDate = DateTime.Now.AddDays(1)};
            var fakeEventPresenter = new EventPresenter
                                         {
                                             User = new User {FirstName = "Robert", LastName = "Zych"}
                                         };
            fakeEvent.EventPresenters.Add(fakeEventPresenter);
            GetTable<Event>().Add(fakeEvent);
        }

        public override void CreateTables()
        {
            AddTable<Event>();
        }
    }
}